package com.ruoyi.subject.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.subject.domain.SubjectTarget;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 11975
 */
public interface SubjectTargetMapper extends BaseMapper<SubjectTarget> {

    @Select("SELECT target_id FROM subject_target WHERE subject_id = #{subjectId} AND target_type = #{targetType}")
    List<Integer> selectTargetId(@Param("subjectId") Long subjectId,@Param("targetType")  String targetType);
}
